import request from '../utils/request';

import { UrlConfig, call } from './fetch';


/**
 * 获取专题资讯
 */
export function informationList(data) {
    if(data){
        data.is_admin = 1;
    }
    return call('/fcinformation/Themeinformation/informationList', 'get', data);
}

/**
 * 新增专题资讯
 */
export function addInformation(data) {
    return call('/fcinformation/Themeinformation/addInformation', 'post', data);
}
/**
 * 审核专题资讯状态
 */
export function auditVideo(data) {
    return call('/fcinformation/Themeinformation/changeStatus','post', data);
}
/**
 * 专题引用
 */
export function usedModule(data) {
    return call('/fcinformation/Themeinformation/usedModule', 'post', data);
}

/**
 * 排序
 */
export function sortInformation(data) {
    return call('/fcinformation/Themeinformation/sortInformation', 'post', data);
}

/**
 * 删除
 */
export function deleteInformation(data) {
    return call('/fcinformation/Themeinformation/deleteInformation', 'post', data);
}

/**
 * 专题资讯批量审核
 */
export function changeStatus(data) {
    return call('/fcinformation/Themeinformation/changeStatus', 'post', data);
}

/**
 * 置顶
 */
export function top(data) {
    return call('/fcinformation/Themeinformation/top', 'post', data);
}

/**
 * 取消置顶
 */
export function cancelTop(data) {
    return call('/fcinformation/Themeinformation/cancelTop', 'post', data);
}
/**
 * 获取资讯稿件详情
 */
export function informationThemeInfo(data) {
    return call('/fcinformation/Themeinformation/informationInfo', 'get', data);
}

/**
 * 修改资讯
 */
export function updateInformation(data) {
    return call('/fcinformation/Themeinformation/updateInformation', 'post', data);
}


